const { proxy } = require("jquery");
const webpack = require("webpack");
module.exports = {
    outputDir: "docs",
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: "jquery",
                jQuery: "jquery",
                "window.jQuery": "jquery",
                "window.$": "jquery",
                Popper: ["popper.js", "default"]
            })
        ]
    },
    devServer:{
        proxy:{
            '/api':{
                target:'https://aip.baidubce.com/',
                changeOrigin:true,
                pathRewrite:{
                    '^/api':''
                }
            }
        }
    }
}
